x86/mca: MCA bank clear
authorLiu, Jinsong <jinsong.liu@intel.com>
Thu, 12 May 2011 07:53:42 +0000 (08:53 +0100)
committerLiu, Jinsong <jinsong.liu@intel.com>
Thu, 12 May 2011 07:53:42 +0000 (08:53 +0100)
commitd6c52e8a40645d41a2175be9fa0a14ab2bb5d63e
tree51cfe461ab6df89e0be81a00181b8e8d1cbf771b
parent89a4be6901256677b32b99c834e0b9281bbb1d46
x86/mca: MCA bank clear

1). Add explicitly uc=pcc=1 fatal error detect, since under such case
the s/ar/over bits status is undefined and hence may be
mis-cleaned. Explicit fatal detect return 0 indicate stick MSR bank
will have chance to be handled after reboot by polling;
2). Fix a little bug for case SRAR, over bit should be 0 when need
clear bank, otherwise it would reset system;
3). When clear bank, add clear MCi_ADDR/MISC if it's valid, according
to Intel SDM;

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce_intel.c